import jakarta.servlet.annotation.WebServlet;
import  jakarta.servlet.http.HttpServlet;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;
import java.io.PrintWriter;

@WebServlet(name="servletContext",value = "/ServletContext")
public class ServletContext extends HttpServlet {

    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
        PrintWriter out=resp.getWriter();
        jakarta.servlet.ServletContext context = getServletConfig().getServletContext();
        String admin_Email= context.getInitParameter("admin-email");
        String admin_Telephone=context.getInitParameter("admin-tel");
        context.log(admin_Email);
        context.log(admin_Telephone);
    }
}
